package com.invengo.library_rfid.utils;

import android.content.Context;

import java.io.InputStream;
import java.util.Properties;

public class PropertiesUtil {

    public static Properties getProperties(Context c){
        Properties urlProps;
        Properties props = new Properties();
        try {
            InputStream in = c.getAssets().open("tagSupportssss");
            props.load(in);
        } catch (Exception e1) {
            e1.printStackTrace();
        }
        urlProps = props;
        return urlProps;
    }

    public synchronized static void write(Properties properties, String key, String value){
        if(null == properties){
            return;
        }
        properties.setProperty(key, value);
    }

}
